#!/bin/bash

AGENT_JAR_FILE="$AGENT_DIR_BASE/naito_rescue.jar"
AGENT_DIR_BASE="."

KERNEL_DIR="/home/boss/rescue/rescue-competition2010"
KERNEL_BOOT_DIR=$KERNEL_DIR"/boot"
KERNEL_BOOT_SCRIPT=$KERNEL_BOOT_DIR"/start.sh"
KERNEL_BOOT_ARGS=" -m $KERNEL_DIR/maps/gml/test"

KERNEL_ADDRESS="localhost"
KERNEL_PORT=7000

CLASSPATH=`find ./jars -name "*.jar" | xargs | sed -e "s/ /:/g"`
CLASSPATH=$CLASSPATH:$AGENT_JAR_FILE

processArgs $*

java -Xmx256m -cp $CLASSPATH rescuecore2.LaunchComponents naito_rescue.viewer.NAITOViewer -h $KERNEL_ADDRESS -p $KERNEL_PORT --viewer.maximise=true --loadabletypes.inspect.dir=./jars &
